package com.lanren.common.http;

import com.lanren.easyhttp.request.DownloadRequest;
import com.lanren.easyhttp.request.GetRequest;
import com.lanren.easyhttp.request.PostRequest;

/**
 * @ClassName HttpManager
 * @Description TODO
 * @Author chongheng.wang
 * @Date 2019/11/30 21:13
 * @Version 1.0
 */
public class HttpManager {
    /**
     * get请求
     */
    public static GetRequest get(String url) {
        return new CustomGetRequest(url);
    }

    /**
     * post请求
     */
    public static PostRequest post(String url) {
        return new CustomPostRequest(url);
    }

    /**
     * 下载
     */
    public static DownloadRequest downloadRequest(String url){
        return new DownloadRequest(url);
    }
}
